/****************************************************
          File Name:10-2_imply.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 22 Dec 2014 09:26:59 PM CST
*****************************************************/

#include<iostream>
#include"10-2.h"
#include<cstring> //strcpy

using std::string;

Person::Person(const string & ln, const char *fn)
{
    lname = ln;
    strcpy(fname, fn);
}

void Person::show(void) const
{
    std::cout << lname << " ";
    std::cout << fname << std::endl;
}

void Person::formalshow() const
{
    std::cout << fname << " ";
    std::cout << lname << std::endl;
}
